﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Reflection;
using System.Web.Handlers;
using System.Web.UI.WebControls;

[assembly: System.Web.UI.WebResource("Fodera.Web.UI.Resources.scripts.jquery-ui-1.8.2.custom.js", "text/js")]
namespace MVC.Web.UI
{ 
    public class MVCUIScriptManager  
    {
        public string RenderScripts()
        {     
            System.Web.UI.Page page = System.Web.HttpContext.Current.CurrentHandler as System.Web.UI.Page;
            var embededScripts = page.ClientScript.GetWebResourceUrl(this.GetType(), "Fodera.Web.UI.Resources.scripts.jquery-ui-1.8.2.custom.js");
            return "<script src='" + embededScripts + "' type='text/javascript'></script> ";
        }
    }
}

    